package com.fz.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fz.entity.Complaint;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fz.entity.Repair;
import com.fz.entity.Visitor;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author fz
 * @since 2024-08-20
 */
public interface ComplaintService extends IService<Complaint> {

    boolean check(Long id, String field, String value);

    Boolean reject(Long id, Integer status,Integer statu);

    Boolean pass(Long id, Integer status,Integer statu);

    List<Complaint> search(String input);

    boolean del(Long id, Integer status);

    Page<Complaint> getList(Long userId, Integer pageNo, Integer pageSize);

    Boolean add(Integer userId, String type, String content);
    Page<Complaint> showList(Integer pageNo, Integer pageSize);
    Page<Complaint> search(String input, Integer pageNo, Integer pageSize);
}
